20 Recipes for Programming PhoneGap by Jamie Munro

20 Recipes for Programming PhoneGap by Jamie Munro

Author:Jamie Munro [Jamie Munro]
Language: eng
Format: epub, pdf
Tags: COMPUTERS / Programming / General
ISBN: 9781449319533
Publisher: O'Reilly Media
Published: 2012-03-20T16:00:00+00:00


Note

This feature might not work correctly in all simulators and an actual device may be needed.

1.11. Displaying Table-View Data

Problem

You have a hierarchical list of items that you wish to display in a table, cascading so that when the user selects the one item, the table navigates to another filtered list of items, until the user receives the specific detail view.

Solution

We’ll use the jQuery mobile library to display a standard-looking table listing of data that the user can scroll up or down by swiping their finger. When they select an item in the list, the library will then filter the list; once they click on a second item, the detail page will be displayed. This is accomplished by some basic HTML and invoking a data-role type called listview.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.